package com.y2w.common.exception;


public class NoStockException extends RuntimeException{
    private Long skuId;

    public NoStockException() {
        super("库存不足");
    }

    public NoStockException(Long skuId) {
        super("商品id："+skuId+"库存不足");
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
